home *** CD-ROM | disk | FTP | other *** search
- Path: user2.mnsinc.com!huang
- From: huang@mnsinc.com (Szu-Wen Huang)
- Newsgroups: comp.lang.c
- Subject: Re: Q:Hex to Decimal?
- Date: 12 Apr 1996 15:02:07 GMT
- Organization: Monumental Network Systems
- Message-ID: <4klr9f$29d@news1.mnsinc.com>
- References: <DpqLyJ.8Jy@rci.ripco.com>
- NNTP-Posting-Host: user.mnsinc.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Martin Ambuhl (mambuhl@ripco.com) wrote:
- : Thomas A Cooper <tacooper@tricon.net> in <316D2289.4759@tricon.net>
- : asks:
-
- : > I'm struggling with the reverse situation, a function to convert an
- : >integer into a HEX string. Anybody got any ideas?? Thanks in advance for
- : >your help.
-
- : sprintf(target_string,"x",(unsigned)your_integer);
-
- Which prints an "x" to your string and formats your hard disk if you
- have a mean C compiler. :) Try "%x" as the format string.
-